package com.ecar.core.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ecar.common.dao.mybatis.MybatisMapper;
import com.ecar.core.common.entity.CouponActivities;

public interface CouponActivitiesMapper extends MybatisMapper{
    int deleteByPrimaryKey(String id);

    int insert(CouponActivities record);

    int insertSelective(CouponActivities record);

    CouponActivities selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CouponActivities record);

    int updateByPrimaryKey(CouponActivities record);
    /**
     * 查询激活优惠卷
     * @return
     */
    List<CouponActivities> selectAll();
    
    int updateCouponCountByActivityId(@Param("couponActivityId") String couponActivityId,@Param("couponCount") int couponCount);
}